package group2.beans;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.persistence.Column;

/**
 * used when adding posts
 *
 * @author cnilsson
 */
@ManagedBean
@RequestScoped
public class AddPostBackingBean implements Serializable {
      
     @Column(nullable = false, length = 50)
     private String title;
     
     @Column(nullable = false, length = 8192)
     private String content;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    
    
    /** Creates a new instance of AddUserBackingBean */
    public AddPostBackingBean() {
    }
}
